<template>
  <!-- 关于三种合同的说明弹框 -->
  <el-dialog
    :visible.sync="dialogVisible"
    width="590px"
    :before-close="handleClose"
    custom-class="contract_tips"
  >
    <div slot="title">
      <i class="el-icon-question" style="color: #ffae57; font-size: 20px"></i>
      <span class="tip_tit">关于四种种合同的说明</span>
    </div>
    <div style="font-size: 14px; color: #333; display: flex">
      <div
        style="
          color: #333333;
          margin-left: 11px;
          margin-top: 9px;
          margin-left: 16px;
        "
      >
        <p>
          <span style="font-weight: bold">首付款合同：</span>
          是针对分期平台用户支付定金的合同，不产生VIP学员
        </p>
        <p style="margin-top: 12px">
          <span style="font-weight: bold">账单合同：</span
          >是指三方分期平台的主订单数据，不可新建，不可删除/作废
        </p>
        <p style="margin-top: 12px">
          <span style="font-weight: bold">全款/复购合同：</span
          >是针对用户全款支付类型的合同, 同时适用于用户复购, 提前结清
        </p>
        <p style="margin-top: 12px">
          <span style="font-weight: bold">线下合同：</span
          >是针对账单用户, 退学但未走账单平台收取退学补款的合同
        </p>
      </div>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="handleClose">我知道啦</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
    };
  },
  props: ["showContractTip"],
  watch: {
    showContractTip(val) {
      if (val) {
        this.dialogVisible = true;
      } else {
        this.dialogVisible = false;
      }
    },
  },
  methods: {
    handleClose() {
      this.dialogVisible = false;
    },
  },
};
</script>

<style lang="scss">
.contract_tips .el-dialog__body {
  padding-top: 0 !important;
  padding-bottom: 54px !important;
}
</style>
<style scoped lang="scss">
.tip_tit {
  color: #333;
  font-size: 16px;
  font-weight: bold;
  margin-left: 6px;
}
</style>
